<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core_1_1" %>
<%--
  Created by IntelliJ IDEA.
  User: Wang Ziming
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员页面</title>
</head>
<body>
    <%--也加上导航，只是仅有两项--%>
    <div class="nav-head">
        <nav class="gird-header" style="width: 100%">
            <div class="nav-text">
                <%--右侧登录、注册，下面已经设置成right了--%>
                <span class="nav-text-right">
                    <span><a href="/logoutAdmin" class="nav-a" style="float: right;margin-right: 10px;">退出</a></span>
                </span>
            </div>
        </nav>
    </div>

    <%--侧边框--%>
    <div class="sidenav">
        <a href="/adminInfo?pageNum=1">发布公告</a>
        <a href="/adminInfo?pageNum=2">删除队伍</a>
    </div>
    <%--右侧主题部分--%>
    <div class="main">
        <%--choose，根据参数pageNum来选择包含的页面；include可以发挥作用--%>
        <c:choose>
            <c:when test="${pageNum=='1'}">
                <jsp:include page="/WEB-INF/adminInfo/announce.jsp"></jsp:include>
            </c:when>
            <c:when test="${pageNum=='2'}">
                <%--<jsp:include page="/WEB-INF/adminInfo/deleteGroup.jsp"/>--%>
                <%@include file="../adminInfo/deleteGroup-bak.jsp"%>
            </c:when>
            <c:otherwise>
                <jsp:include page="/WEB-INF/adminInfo/announce.jsp"></jsp:include>
            </c:otherwise>
        </c:choose>
    </div>
</body>
<%--css--%>
<link type="text/css" rel="stylesheet" href="/css/index.css">
<link type="text/css" rel="stylesheet" href="/css/menu.css">
<style>
    .main{
        font-size: 28px;
        margin-left: 15%;
    }
    /*对导航栏进行配置*/
    .nav-head{
        width: 100%;
        height: 23px;

        /*指明背景颜色*/
        background-color: black;
        /*背景透明度*/
        opacity: 50%;
        color: aliceblue;
        font-family: 华文行楷;
        font-size: 20px;
        /*固定*/
        /*position: fixed;*/
    }
    /*导航栏文字*/
    .nav-text{
        /*设置字体水平对齐方式*/
        /*text-align: center;*/
        /*文字颜色*/
        color: aliceblue;
        font-family: 华文行楷;
        font-size: 20px;
        font-height: 80%;
    }
    /*查询队伍、查询出游地的框*/
    .nav-text-search{
        padding-left: 25%;
    }
    /*右侧登录、注册 / 个人中心、退出*/
    .nav-text-right{
        /*针对当前模块布局情况*/
        padding-left: 45px;
    }
    /*将提交的查询表格form设置为不自动换行*/
    #searchForm{
        margin:0px;
        display: inline;
    }
    /*导航栏超链接修改*/
    .nav-a{
        text-decoration: none;
        color: floralwhite;
    }
</style>
</html>
